<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" Text="Change Password" CssClass="header"></asp:Label><br />
    <br />
    <br />
    <table style="width: 350px">
        <tr>
            <td style="width: 130px">
                <strong>Old Password:</strong></td>
            <td style="width: 150px">
                <asp:TextBox ID="txtOldPassword" runat="server" MaxLength="12" TextMode="Password" Width="150px"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Old Password is required" ControlToValidate="txtOldPassword">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Old Password must be 6-12 characters" ValidationExpression="^[\d\w]{6,12}$" ControlToValidate="txtOldPassword">*</asp:RegularExpressionValidator></td>    
        </tr>
        <tr>
            <td style="width: 130px">
                <strong>New Password:</strong></td>
            <td style="width: 150px">
                <asp:TextBox ID="txtNewPassword" runat="server" MaxLength="12" TextMode="Password" Width="150px"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="New Password is required" ControlToValidate="txtNewPassword">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="New Password must be 6-12 characters" ControlToValidate="txtNewPassword" ValidationExpression="^[\d\w]{6,12}$" Text="*"></asp:RegularExpressionValidator></td>    
        </tr>
        <tr>
            <td style="width: 130px">
                <strong>Confirm Password:</strong></td>
            <td style="width: 150px">
                <asp:TextBox ID="txtConfirmPassword" runat="server" MaxLength="12" TextMode="Password" Width="150px"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Confirm Password is required" ControlToValidate="txtConfirmPassword">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword"
                    ControlToValidate="txtConfirmPassword" ErrorMessage="Confirm Password do not match!" Text="*"></asp:CompareValidator></td>
        </tr>
        <tr>
            <td colspan="3" style="height: 26px; width: 150px; text-align: center">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                <asp:Button ID="btnReset" runat="server" CausesValidation="False" OnClick="btnReset_Click"
                    Text="Reset" /><br />
    <asp:Label ID="Label2" runat="server" ForeColor="Red"></asp:Label></td>
        </tr>
    </table>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <br />
</asp:Content>

